﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;

    public class Dcms_VoteBLL
    {
        private IDcms_VoteDAL vOp = Dcms.DALFactory.DALFactory.CreateDcms_Vote();

        public Dcms_VoteModel AddModel(Dcms_VoteModel model)
        {
            return this.vOp.AddModel(model);
        }

        public bool DeleteAllCheck(string AllID)
        {
            return this.vOp.DeleteAllCheck(AllID);
        }

        public void DeleteModelByID(int ID)
        {
            this.vOp.DeleteModelByID(ID);
        }

        public string GetDataCount(string SqlStr)
        {
            return this.vOp.GetDataCount(SqlStr);
        }

        public IList<Dcms_VoteModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize)
        {
            return this.vOp.GetDataListByPage(SqlStr, CurPage, PageSize);
        }

        public Dcms_VoteModel GetModelByID(int ID)
        {
            return this.vOp.GetModelByID(ID);
        }

        public Dcms_VoteModel Update(Dcms_VoteModel model)
        {
            return this.vOp.Update(model);
        }

        public bool UpdateState(string AllID, int StateValue)
        {
            return this.vOp.UpdateState(AllID, StateValue);
        }
    }
}

